package net.sky.oa.service.talkpark.impl;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import net.sky.oa.dao.talkpark.TalAlbumDao;
import net.sky.oa.model.TalAlbum;
import net.sky.oa.service.talkpark.TalAlbumService;
import com.htsoft.core.service.impl.BaseServiceImpl;
@Service
@Transactional
public class TalAlbumServiceImpl extends BaseServiceImpl<TalAlbum> implements
		TalAlbumService {
	
	private TalAlbumDao talalbumdao;
	
	@Resource
	public void setDao(TalAlbumDao talalbumdao){
		super.setDao(talalbumdao);
		this.talalbumdao=talalbumdao;
	}
    
	@Transactional(readOnly=false)
	public List<TalAlbum> findAllTalAlbum() {
		return this.talalbumdao.findAllTalAlbum();
	}
	@Transactional(readOnly=false)
	public Map  findTalAlbumByUser(final Long userId,final int currentPage,final int lineSize) throws Exception{	
		return this.talalbumdao.findTalAlbumByUser(userId, currentPage, lineSize);
	}
	@Transactional(readOnly=false)
    public Map  findCompanyAlbumByUser(final Long userId,final int currentPage,final int lineSize) throws Exception{
    	return this.talalbumdao.findCompanyAlbumByUser(userId, currentPage, lineSize); 
    }
	@Transactional(readOnly=false)
	public Map  findAlbumByEmployees(final Long userId,final int currentPage,final int lineSize) throws Exception{
		return this.talalbumdao.findAlbumByEmployees(userId, currentPage, lineSize);
	}
	public List<TalAlbum> findByHql(String paramString) {
		
		return null;
	}


}
